<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.photo.*" %>
<%@ page import="com.business.photo.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%String title="修改相册"; %>
<%@ include file="header.jsp"%>
<%
	String type=request.getParameter("id");
	int typeId=Integer.parseInt(type);
	PhotoTypeBus ptb=new PhotoTypeBus();
	PhotoType pt=ptb.getPhotoTypeById(typeId);
%>
<p><b>修改相册:</b></p>
<form id="form1" name="form1" method="post" action="addphototype">
  <p><label>名称:
    
    <input name="phototypename" type="text" id="phototypename" value="<%=pt.getPhototypeName()%>" />
    </label>
  </p>
  <p>  <label>描述:
  
    <input name="phtotypememo" type="text" id="phtotypememo"  value="<%=pt.getPhototypeMemo()%>"/>
    </label>
</p>
  <p>
    <input name="username" type="hidden" id="username" value="<%=username%>" />
	<input name="action" type="hidden" value="update" />
	<input name="id" type="hidden" value="<%=typeId%>" />
  </p>
   <p>
   <label>
		<br />
 &nbsp; <input type="image" src="images/submit.gif" />
      </label>
</p>
</form>
<p>&nbsp; </p>
<%@ include file="footer.jsp"%>
</body>
</html>
